{include file="admin/infoline.html"}
<div style="padding:0 15px 0 15px ">	
	{*ext->get_site_permision user=$smarty.session.login_user assign="site_permission"*}

	{if $site_permission.main_tree == 1}
		{assign var="tpl_titleblock_title" value="Turinio valdymas"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/body/content.htm"}
		{assign var="tpl_titleblock_description" value="Iš čia valomas svetainės turinys"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}		
	
	{if $site_permission.main_sitesettings == 1}
		{assign var="tpl_titleblock_title" value="Tinklapio nuostatos"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1"}
		{assign var="tpl_titleblock_description" value="Čia galite nustatyti įvairiausius svetainės parametrus"}
		{assign var="tpl_titleblock_id" value=$site_data_id}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $data.admins.cur.mod[1]}
		{assign var="tpl_titleblock_title" value="Administratoriai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/body/admins.htm"}
		{assign var="tpl_titleblock_description" value="Galite sukurti kiek tik norite administratorių bei nustatyti jiems teises"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
		
	{if $site_permission.main_blocks == 1}
		{assign var="tpl_titleblock_title" value="Informacijos blokai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/body/aditionalelements.htm"}
		{assign var="tpl_titleblock_description" value="Tai yra palaidi puslapio elementai, kurie gali būti įdėti belekur."}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"} 
	{/if}
	
	{if isset($_var.type) && $_var.type == 1}
		
	{else}
		{ext->is_form_block assign="is_form"}
		{if ($site_permission.main_forms == 1) && ($is_form == 1)}
			{assign var="tpl_titleblock_title" value="Formos"}
			{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/body/forms/forms.htm"}
			{assign var="tpl_titleblock_description" value="Čia rasite visas svetainėje vartotojų užpildytas formas"}
			{assign var="tpl_titleblock_id" value=''}
			{include file="admin/title_page_block.html"}
		{/if}
	{/if}
	
	{if $site_permission.clients == 1}
		{assign var="tpl_titleblock_title" value="Klientai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/client/client.htm&module=clients"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti klientų duomenis ir jų grupes"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.subscribe_news == 1}
		{assign var="tpl_titleblock_title" value="Naujienų prenumerata"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/subscribe_news/index.html&module=subscribe_news"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti naujienų prenumeratorius"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.letters == 1}
		{assign var="tpl_titleblock_title" value="Laiškų siųntimas"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/letters/index.html&module=letters"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti laiškų siųntimus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.docum == 1}
		{assign var="tpl_titleblock_title" value="Dokumentų valdymas"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/docum/index.html&module=docum"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti dokumentus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.contacts == 1}
		{assign var="tpl_titleblock_title" value="Kontaktai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/contacts/index.html&module=contacts"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti kontaktus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.realstate == 1}
		{assign var="tpl_titleblock_title" value="N. turtas"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/realstate/index.html&module=realstate"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti nekilnojimo turto katalogui"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.shop == 1}
		{assign var="tpl_titleblock_title" value="Parduotuvė"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/shop/index.html&module=shop"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti el. parduotuvei"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.shop_cart == 1}
		{assign var="tpl_titleblock_title" value="Prekių krepšelis"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/shop_cart/index.html&module=shop_cart"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti el. parduotuves prekių prepšelį"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.payment == 1}
		{assign var="tpl_titleblock_title" value="Apmokėjimo budai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/payment/index.html&module=payment"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti apmokėjimo budus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.forum == 1}
		{assign var="tpl_titleblock_title" value="Forumai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/forum/index.html&module=forum"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti forumus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.reiting == 1}
		{assign var="tpl_titleblock_title" value="Reitingai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/reiting/index.html&module=reiting"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti reitingus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.watermark == 1}
		{assign var="tpl_titleblock_title" value="Vandens ženklai"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/watermark/index.html&module=watermark"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti vandens ženklus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.plugins == 1}
		{assign var="tpl_titleblock_title" value="Plugins"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/plugins/index.html&module=plugins"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti pluginus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.comment == 1}
		{assign var="tpl_titleblock_title" value="Comments"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/comment/index.html&module=comment"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti komentarus"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{ext->class_function class="backup" func="is_backup" assign="is_backup"}
	{if ($is_backup == 1)}
		{if $site_permission.backup == 1}
			{assign var="tpl_titleblock_title" value="Atsarginės kopijos"}
			{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/backup/index.html&module=backup"}
			{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti atsarginės kopijas"}
			{assign var="tpl_titleblock_id" value=''}
			{include file="admin/title_page_block.html"}
		{/if}
	{/if}

	{if $site_permission.events == 1}
		{assign var="tpl_titleblock_title" value="Įvykių kontrolė"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/body/events/index.html&module=events"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas valdyti sistemos įvykius"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}

	{if $site_permission.siteblocker == 1}
		{assign var="tpl_titleblock_title" value="Site blocker"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/siteblocker/index.html&module=siteblocker"}
		{assign var="tpl_titleblock_description" value="Įrankis skirtas svetaines prieinamumą"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if $site_permission.ntplius == 1}
		{assign var="tpl_titleblock_title" value="NT Plius"}
		{assign var="tpl_titleblock_href" value="index.php?admin=1&body=admin/modules/ntplius/index.html&module=ntplius"}
		{assign var="tpl_titleblock_description" value="Nekilnojamas turtas PLIUS"}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
	{/if}
	
	{if isset($interface_modules) && $interface_modules}
	{foreach from=$interface_modules key="module" item="item"}
        {if $site_permission[$module] == 1}
        {assign var="tpl_titleblock_title" value=$item.title}
		{assign var="tpl_titleblock_href" value=$item.href}
		{assign var="tpl_titleblock_description" value=$item.description}
		{assign var="tpl_titleblock_id" value=''}
		{include file="admin/title_page_block.html"}
        {/if}
	{/foreach}
	{/if}
</div>